import serial
import time

if __name__ == '__main__':
    ser = serial.Serial(0, 1200)  # open first serial port
    print ser

    while (1):
        rs = ser.write('51.2000=')
        print rs
        time.sleep(1)
        
    print 'end'